package com.phkj.qdh.ui.adapter

import android.content.Context
import android.view.ViewGroup
import com.chad.library.adapter4.BaseQuickAdapter
import com.chad.library.adapter4.viewholder.QuickViewHolder
import com.phkj.qdh.R
import com.phkj.qdh.bean.HomeNoticeBean

class HomeNotificationAdapter : BaseQuickAdapter<HomeNoticeBean, QuickViewHolder>() {
    override fun onBindViewHolder(holder: QuickViewHolder, position: Int, item: HomeNoticeBean?) {
        holder.setText(R.id.tv_title, "关于${item?.name}的警务抄告")
        holder.setText(R.id.tv_content, "${item?.problem}")
        holder.setText(R.id.tv_date, "${item?.time}")
        holder.setText(R.id.tv_date, "${item?.time}")
        holder.setText(R.id.tv_, "${item?.dispose}")
    }

    override fun onCreateViewHolder(
        context: Context, parent: ViewGroup, viewType: Int
    ): QuickViewHolder {
        return QuickViewHolder(R.layout.item_home_notification, parent)
    }
}